<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 全局路由
// +----------------------------------------------------------------------
//use think\facade\Route;
//---------------------首页-------------------------------------




//---------------------微信小程序------------------------------------


//--------------------------------------用户端---------------------------------------
Route::rule('wxLogin', 'app/Index/wxLogin');//获取openid

Route::rule('upload_img', 'app/Index/upload_img');//上传图片

Route::rule('deuser', 'app/Index/deuser');//保存用户信息并返回
Route::rule('deuser2', 'app/Index/deuser2');//保存用户信息支付宝使用

Route::rule('getPhone', 'app/Index/getPhone');//获取手机号

Route::rule('getCityLocation', 'app/Index/getCityLocation');//通过城市获取坐标

Route::rule('getAddressByLocation', 'app/Index/getAddressByLocation');//通过坐标获取位置信息

Route::rule('getBanner', 'app/Index/getBanner');//获取banner图

Route::rule('getPzList', 'app/Index/getPzList');//获取陪诊服务列表
Route::rule('getDzList', 'app/Index/getDzList');//获取导诊服务列表
Route::rule('getJsList', 'app/Index/getJsList');//获取接送服务列表

Route::rule('getPackageList', 'app/Index/getPackageList');//首页推荐套餐

Route::rule('getHospitalRecently', 'app/Index/getHospitalRecently');//获取本市最近医院

Route::rule('toData', 'app/Index/toData');//迁移数据

Route::rule('giveMemberPackage', 'app/WxUser/giveMemberPackage');//获取本市最近医院 测试

Route::rule('getMemberPackageList', 'app/WxUser/getMemberPackageList');//我的套餐列表

Route::rule('getMemberPackageServer', 'app/WxUser/getMemberPackageServer');//我的套餐列表详情

Route::rule('getServerDetail', 'app/Index/getServerDetail');//获取服务详情

Route::rule('getPatientList', 'app/WxUser/getPatientList');//获取就诊人列表
Route::rule('createPatient', 'app/WxUser/createPatient');//创建就诊人
Route::rule('updatePatient', 'app/WxUser/updatePatient');//修改就诊人
Route::rule('delPatient', 'app/WxUser/delPatient');//删除就诊人
Route::rule('getPatientById', 'app/WxUser/getPatientById');//通过id获取就诊人

Route::rule('getHospitalList', 'app/Index/getHospitalList');//获取医院列表
Route::rule('getDepartment', 'app/Index/getDepartment');//获取医院科室
Route::rule('getDepartment2', 'app/Index/getDepartment2');//获取医院科室

Route::rule("getConfigAdmin", 'app/Index/getConfigAdmin');
Route::rule("server2Detail", 'app/Index/server2Detail');//获取导诊详情

Route::rule("getMemberInfo", 'app/WxUser/getMemberInfo');//获取用户信息
Route::rule("updateUserinfo", 'app/WxUser/updateUserinfo');//修改用户信息
Route::rule("server2Area", 'app/Index/server2Area');//开通医院城市
Route::rule("getCbingList", 'app/Index/getCbingList');//获取疾病列表
Route::rule("getHospital2", 'app/Index/getHospital2');//推荐医院城市导诊选择
Route::rule("getDoctorList", 'app/Index/getDoctorList');//推荐医院城市导诊选择
Route::rule("hospItalDetail", 'app/Index/hospItalDetail');//医院详情
Route::rule("doctorDetail", 'app/Index/doctorDetail');//医院详情

Route::rule("getData", 'app/Index/getData');//获取近几天日期
Route::rule("jsDetail", 'app/Index/jsDetail');//接送服务详情
Route::rule("mcardList", 'app/WxUser/mcardList');//我的会员卡列表
Route::rule("mcardDetail2", 'app/WxUser/mcardDetail2');//会员卡权益列表
Route::rule("activeCard", 'app/WxUser/activeCard');//激活会员卡
//积分兑换
Route::rule("getGoodsCate2", 'app/Index/getGoodsCate2');//获取积分商品类型
Route::rule("getGoodsList", 'app/Index/getGoodsList');//获取积分商品列表
Route::rule("getGoodsDetail", 'app/Index/getGoodsDetail');//获取积分商品详情
Route::rule("fractionExchange", 'app/WxUser/fractionExchange');//积分兑换
Route::rule("fractionHistory", 'app/WxUser/fractionHistory');//积分明细
Route::rule("exchangeHistory", 'app/WxUser/exchangeHistory');//积分兑换记录
Route::rule("exchangeOrderDetail", 'app/WxUser/exchangeOrderDetail');//获取兑换详情

Route::rule("getMemberCouponsList", 'app/WxUser/getMemberCouponsList');//获取我的优惠卷列表


//套餐相关
Route::rule("getPackageList2", 'app/WxUser/getPackageList2');//获取套餐列表
Route::rule("getPackageDetail", 'app/WxUser/getPackageDetail');//获取套餐详情
Route::rule("getMyPackageList", 'app/WxUser/getMyPackageList');//获取我的套餐列表
Route::rule("getMyPackageDetail", 'app/WxUser/getMyPackageDetail');//获取我的套餐详情

//地址相关
Route::rule("addAddress", 'app/WxUser/addAddress');//增加收货地址
Route::rule("getDefaultAddress", 'app/WxUser/getDefaultAddress');//获取默认地址
Route::rule("getAddress2", 'app/WxUser/getAddress2');//通过id获取地址
Route::rule("editAddress", 'app/WxUser/editAddress');//编辑收货地址
Route::rule("getAddressList", 'app/WxUser/getAddressList');//获取地址列表
Route::rule("delAddress", 'app/WxUser/delAddress');//删除地址
Route::rule("setDefaultAddress", 'app/WxUser/setDefaultAddress');//设置为默认地址
Route::rule("getPackageList2", 'app/WxUser/getPackageList2');//获取套餐列表

//评价相关
Route::rule("getCommentLabList", 'app/Index/getCommentLabList');//获取评价标签
Route::rule("createComment", 'app/WxUser/createComment');//创建评价 type 1陪诊 2导诊 3接送服务
Route::rule("getPzCommentTop", 'app/WxUser/getPzCommentTop');//获取陪诊导诊评价顶部
Route::rule("getCommentList", 'app/WxUser/getCommentList');//陪诊导诊评价列表
Route::rule("getPzCommentTop2", 'app/WxUser/getPzCommentTop2');//获取接送评价顶部
Route::rule("getCommentList2", 'app/WxUser/getCommentList2');//陪诊接送评价列表
//陪诊评价列表

//创建套餐订单
Route::rule("createPackageOrder", 'app/WxUser/createPackageOrder');//创建套餐订单
Route::rule("payPackageOrder", 'app/WxUser/payPackageOrder');//发起套餐微信支付
Route::rule("packageOrderBack", 'app/WxUser/packageOrderBack');//购买套餐回调
//会员卡购买
//Route::rule("createVipOrder", 'app/WxUser/createVipOrder');//创建会员卡购买订单
//Route::rule("payVipOrder", 'app/WxUser/payVipOrder');//发起会员卡微信支付
//Route::rule("packageOrderBack", 'app/WxUser/packageOrderBack');//购买套餐回调
////会员卡下单
Route::rule("createVipOrder", 'app/WxUser/createVipOrder');//创建会员卡购买订单
Route::rule("payVipOrder", 'app/WxUser/payVipOrder');//发起会员卡微信支付
Route::rule("packageVipOrder", 'app/WxUser/packageVipOrder');//购买会员卡回调
Route::rule("getmcardDetail", 'app/WxUser/getmcardDetail');//会员卡详情

//申请人员
Route::rule("createPz", 'app/WxUser/createPz');//申请陪诊员
Route::rule("createDriver", 'app/WxUser/createDriver');//申请司机
Route::rule("createFx", 'app/WxUser/createFx');//申请成为分销人员

Route::rule("getPzStatus", 'app/WxUser/getPzStatus');//获取陪诊员审核状态
Route::rule("getDriverStatus", 'app/WxUser/getDriverStatus');//获取司机审核状态
Route::rule("getFxStatus", 'app/WxUser/getFxStatus');//获取分销员审核状态
//1等待审核 0申请已通过 -1 未申请  -2账户冻结,请联系管理员 -3审核不通过

Route::rule("payGoodsOrder", 'app/WxUser/payGoodsOrder');//发起支付测试

//下单相关
Route::rule("getMemberCoupons2", 'app/WxUser/getMemberCoupons2');//获取订单可用优惠卷
Route::rule("getVipCount2", 'app/WxUser/getVipCount2');//获取会员折扣
Route::rule("getRouteProvince", 'app/WxUser/getRouteProvince');//通过医院id获取开通省
Route::rule("getRouteCityByProvince", 'app/WxUser/getRouteCityByProvince');//通过省获取开通市

Route::rule("getCityAddress", 'app/WxUser/getCityAddress');//通过医院id获取市内开通地点
Route::rule("getRoutePrice", 'app/WxUser/getRoutePrice');//获取路线价格

Route::rule("createDriverOrder", 'app/WxUser/createDriverOrder');//创建接送订单
Route::rule("payDriverOrder", 'app/WxUser/payDriverOrder');//接送订单微信发起支付
Route::rule("driverOrderBack", 'app/WxUser/driverOrderBack');//接送订单回调
//陪诊订单相关
Route::rule("createServerOrder", 'app/WxUser/createServerOrder');//创建直接购买陪诊订单
Route::rule("createServerOrder2", 'app/WxUser/createServerOrder2');//创建导诊订单
Route::rule("createServerOrder3", 'app/WxUser/createServerOrder3');//创建直接购买陪诊订单3
Route::rule("payServerOrder", 'app/WxUser/payServerOrder');//导诊陪诊订单微信发起支付
Route::rule("serverOrderBack", 'app/WxUser/serverOrderBack');//导诊陪诊订单回调

Route::rule("getServerOrderList", 'app/WxUser/getServerOrderList');//获取会员陪诊 导诊订单列表
Route::rule("getServerOrderDetail", 'app/WxUser/getServerOrderDetail');//陪诊导诊订单详情
Route::rule("finishServerOrder", 'app/WxUser/finishServerOrder');//完成陪诊导诊订单
Route::rule("cancelServerOrder", 'app/WxUser/cancelServerOrder');//取消陪诊导诊订单
Route::rule("refundServerOrder", 'app/WxUser/refundServerOrder');//陪诊导诊订单退款

Route::rule("getDriverOrderList", 'app/WxUser/getDriverOrderList');//获取会员接送订单
Route::rule("getDriverOrderDetail", 'app/WxUser/getDriverOrderDetail');//接送订单详情
Route::rule("finishDriverOrder", 'app/WxUser/finishDriverOrder');//接送订单完成
Route::rule("cancelDriverOrder", 'app/WxUser/cancelDriverOrder');//接送订单取消
Route::rule("refundDriverOrder", 'app/WxUser/refundDriverOrder');//接送订单退款

//--------------------------------------------------陪诊员相关----------------------------
Route::rule("PzOnline", 'app/Pz/BusinessOnline');//陪诊员 0下线 1上线
Route::rule("roomOrderList", 'app/Pz/roomOrderList');//接单大厅列表
Route::rule("ReceivingServerOrder", 'app/Pz/ReceivingServerOrder');//陪诊接单
Route::rule("waitOrderList", 'app/Pz/waitOrderList');//待处理订单列表
Route::rule("historyServerOrder", 'app/Pz/historyServerOrder');//待处理订单列表
Route::rule("pzFinanceTop", 'app/Pz/pzFinanceTop');//账户中心顶部
Route::rule("pzTixian", 'app/Pz/pzTixian');//陪诊员提现
Route::rule("tixianList", 'app/Pz/tixianList');//提现记录
Route::rule("szList", 'app/Pz/szList');//收支明细
Route::rule("getPzInfo", 'app/Pz/getPzInfo');//获取陪诊员信息
Route::rule("pzHandleOrder", 'app/Pz/handleOrder');//接送订单员开始处理订单
Route::rule("pzGetServerOrderList", 'app/Pz/getServerOrderList');//服务中订单列表
//--------------------------------------------------司机相关----------------------------
Route::rule("driverOnline", 'app/Driver/BusinessOnline');//接送订单员 0下线 1上线
Route::rule("driverRoomOrderList", 'app/Driver/roomOrderList');//接送接单大厅列表
Route::rule("driverReceivingServerOrder", 'app/Driver/ReceivingServerOrder');//接送订单接单
Route::rule("driverWaitOrderList", 'app/Driver/waitOrderList');//接送待处理订单列表
Route::rule("driverHandleOrder", 'app/Driver/handleOrder');//接送订单员开始处理订单
Route::rule("driverHistoryServerOrder", 'app/Driver/historyServerOrder');//接送订单历史订单
Route::rule("driverFinanceTop", 'app/Driver/driverFinanceTop');//账户中心顶部
Route::rule("driverSZList", 'app/Driver/driverSZList');//收支明细
Route::rule("driverTixian", 'app/Driver/driverTixian');//司机提现
Route::rule("drivertixianList", 'app/Driver/drivertixianList');//司机提现记录
Route::rule("getDriverInfo", 'app/Driver/getDriverInfo');//获取司机信息
Route::rule("driverGetServerOrderList", 'app/Driver/getServerOrderList');//服务中订单列表

//--------------------------------------------------分销相关----------------------------
Route::rule("fxFinanceTop", 'app/Fx/fxFinanceTop');//分销账户中心
Route::rule("fxTixian", 'app/Fx/fxTixian');//分销提现
Route::rule("fxTixianList", 'app/Fx/fxTixianList');//分销提现记录
Route::rule("myJunior", 'app/Fx/myJunior');//我的下线
Route::rule("order1List", 'app/Fx/order1List');//分销订单1 分销陪导诊订单列表
Route::rule("order2List", 'app/Fx/order2List');//分销订单2 分销接送订单
Route::rule("order3List", 'app/Fx/order3List');//分销订单3 分销套餐订单
Route::rule("order4List", 'app/Fx/order4List');//分销订单4 分销会员订单

Route::rule("getMyServer", 'app/WxUser/getMyServer');//获取我的服务
Route::rule("getRole", 'app/WxUser/getRole');//判断角色

//新增
Route::rule("getPzPeopleList", 'app/Index/getPzPeopleList');//陪诊员列表

Route::rule("tuikuanApi", 'app/WxUser/tuikuanApi');//退款
//大屏
Route::rule("cIndex", 'app/Index/cIndex');
Route::rule("cIndex2", 'app/Index/cIndex2');
Route::rule("getPie", 'app/Index/getPie');
Route::rule("getbar", 'app/Index/getbar');
//定时任务

//陪诊导诊定时任务 完成
Route::rule("getOrderPay", 'app/Index/getOrderPay');
//上海车送定时任务完成
Route::rule("getOrderPay2", 'app/Index/getOrderPay2');
//上海会员卡定时完成任务
Route::rule("getOrderPay3", 'app/Index/getOrderPay3');
//上海套餐定时任务
Route::rule("getOrderPay4", 'app/Index/getOrderPay4');

//上海陪诊导诊定时任务 取消
Route::rule("pdOrderCancel", 'app/Index/pdOrderCancel');
//上海接送订单定时取消
Route::rule("pdOrderCancel2", 'app/Index/pdOrderCancel2');
//上海接送订单定时取消
Route::rule("pdOrderCancel3", 'app/Index/pdOrderCancel3');
//上海套餐订单定时取消
Route::rule("pdOrderCancel4", 'app/Index/pdOrderCancel4');

//科室上传
Route::rule("c1", 'app/Index/c1');
//路线上传
Route::rule("insertRoute", 'app/Index/insertRoute');
//获取我的会员卡列表
Route::rule("getMyVipList", 'app/WxUser/getMyVipList');
//获取我的会员卡详情
Route::rule("getMyVipDetail", 'app/WxUser/getMyVipDetail');
//
Route::rule("index21", 'app/Index/index21');
Route::rule("aliPaylogin", 'app/Index/aliPaylogin');//获取openid
Route::rule("aliPayPhone", 'app/Index/aliPayPhone');//支付宝获取手机号
Route::rule("repayAliyap", 'app/WxUser/repayAliyap');//支付宝发起支付

Route::rule("payServerOrderAli", 'app/WxUser/payServerOrderAli');//导诊陪诊订单发起支付(支付宝)
Route::rule("payDriverOrderAli", 'app/WxUser/payDriverOrderAli');//接送订单发起支付(支付宝)
Route::rule("payPackageOrderAli", 'app/WxUser/payPackageOrderAli');//发起套餐支付宝发起(支付宝)
Route::rule("payVipOrderAli", 'app/WxUser/payVipOrderAli');//发起会员卡支付宝发起支付(支付宝)

Route::rule("serverOrderBackAli", 'app/WxUser/serverOrderBackAli');//导诊陪诊订单回调(支付宝)
Route::rule("driverOrderBackAli", 'app/WxUser/driverOrderBackAli');//接送订单回调(支付宝)
Route::rule("packageOrderBackAli", 'app/WxUser/packageOrderBackAli');//购买套餐回调(支付宝)
Route::rule("packageVipOrderAli", 'app/WxUser/packageVipOrderAli');//购买会员卡回调(支付宝)

Route::rule("payServerOrderAliBack", 'app/Index/payServerOrderAliBack');//服务支付异步回调
Route::rule("payDriverOrderAliBack", 'app/Index/payDriverOrderAliBack');//接送订单发起支付异步回调
Route::rule("packageOrderBackAliBack", 'app/Index/packageOrderBackAliBack');//发起套餐支付宝发异步回调
Route::rule("payVipOrderAliBack", 'app/Index/payVipOrderAliBack');//会员卡支付宝发起支付异步回调


Route::rule("refundAli", 'app/Index/refundAli');//支付宝退款






